// 初始化样式
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

img {
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #e10200;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.container {
    width: 1000px;
    margin: 0 auto;
}

body {
    font-size: 14px;
    font-family: "微软雅黑";
    line-height: 1.5;
    min-width: 1200px;
}

html {
    // 当用户手动导航或者 CSSOM scrolling API 触发滚动操作时，CSS 属性 scroll-behavior 为一个滚动框指定滚动行为
    // 平滑滚动
    scroll-behavior: smooth;
}

// 顶部
.header {
    height: 112px;
    background: url(../images/topnav_bg.png);
    position: relative;
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 20px;
    z-index:3;

    .logo {
        width: 73px;
        height: 94px;
        position: absolute;
        left: 50%;
        top: 0px;
        margin-left: -36.5px;
    }

    .nav {
        display: flex;
        justify-content: space-between;

        ul {
            display: flex;

            li {
                padding: 0 10px;
                background: url(../images/icon.png) no-repeat 0 9px;
            }
        }
    }

    .bell {
        background: url(../images/bell.png) no-repeat;
        width: 59px;
        height: 107px;
        position: absolute;
        right: 50px;
        top: 55px;
        transform-origin: center top;
        transform: rotate(20deg);
        animation: donghua01 2s ease-in-out 0s infinite alternate;
    }
}

@keyframes donghua01 {
    from {
        transform: rotate(20deg);
    }

    to {
        transform: rotate(-20deg);
    }
}


// 荷叶层
.lotusLeaf {
    margin-top: -112px;
    position: relative;

    img {
        width: 100%;
    }

    .heye {
        position: absolute;
        left: 50%;
        top: 50%;
    }

    .heye1 {
        background: url(../images/summer1.png);
        width: 93px;
        height: 112px;
        margin-left: -538px;
        animation: flow1 5s infinite;
    }

    .heye2 {
        background: url(../images/summer2.png);
        width: 200px;
        height: 314px;
        margin-left: -348px;
        animation: flow2 5s infinite;
    }

    .heye3 {
        background: url(../images/summer3.png);
        width: 245px;
        height: 236px;
        margin-left: -202px;
        animation: flow3 5s infinite;
    }

    .heye4 {
        background: url(../images/summer4.png);
        width: 108px;
        height: 97px;
        margin-left: 69px;
        animation: flow3 5s 2s infinite;
    }

    .heye5 {
        background: url(../images/summer5.png);
        width: 60px;
        height: 62px;
        margin-left: 298px;
        animation: flow2 5s infinite;
    }

    .heye6 {
        background: url(../images/summer6.png);
        width: 257px;
        height: 215px;
        margin-left: 137px;
        animation: flow6 5s infinite;
    }
}

@keyframes flow1 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes flow2 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, 10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes flow3 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes flow6 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

// 新闻区样式
.news {
    background: url(../images/title-1.png) no-repeat center top;
    padding-top: 251px;
    margin-top: -150px;
    position: relative;

    .news-list{
        height: 283px;
        background: url(../images/line.png) no-repeat right top;

        li{
            height: 283px;
            float: left;
            width: 33.33%;
            padding-left: 40px;
            padding-right: 40px;
            background: url(../images/line.png) no-repeat;

            .time{
                color:#e10200;
                font-style: italic;
                text-align: center;
            }

            .title{
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                margin-top: 24px;
                margin-bottom: 24px;
                font-size:16px;
                display: block;
            }

            .desc{
                font-size: 12px;
                color: #666;
                line-height: 20px;
                height: 140px;
                overflow: hidden;
            }
        }
    }

    .treasure-list{
        background:url(../images/taihedian.jpg) no-repeat center top;
        padding-top: 80px;
        
        li{
            width: 33.33%;
            float: left;
            text-align: center;

            p{
                margin-top: 10px;
            }
        }
    }
}

.map{
    background:url(../images/taihe.png) no-repeat center top;
    height: 869px;
    position: relative;
    
    .teacher{
        position: absolute;
        left: 50%;
        top: 50%;
        background:url(../images/teacher.png);
        width: 141px;
        height: 158px;
        margin-left: -70.5px;
        margin-top: -79px;

        &.left{
            background-position-y:-158px;
        }
    }

    .item-list{
        width: 500px;
        height: 500px;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -250px;
        margin-top: -250px;
        animation: donghua02 15s linear 0s infinite;

        &:hover{
            animation-play-state: paused;
        }

        li{
            width: 160px;
            height: 160px;
            position: absolute;
            left: 50%;
            top: 0;
            margin-left: -80px;
            margin-top: -80px;
            transform-origin: center 330px;
            
            img{
                width: 100%;
                height: 100%;
            }
        }
    }
}

.more{
    background:url(../images/title-3.jpg) no-repeat center top;
    padding-top: 120px;

    .app_down{
        background:url(../images/stitle-1.png) no-repeat;
        padding-left: 60px;
        width: 520px;

        .app{
            li{
                float: left;
                margin-right: 10px;

                a{
                    display: block;

                    img{
                        width: 100px;
                        height: 100px;
                        border-radius: 20px;
                        box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
                    }

                    p{
                        margin-top: 13px;
                        margin-bottom: 26px;
                        text-align: center;
                        font-size:12px;
                    }
                }
            }
        }
    }

    .about_us{
        background:url(../images/stitle-2.png) no-repeat left top, url(../images/sina.png) no-repeat right top, url(../images/weixin.png) no-repeat 30px bottom;
        padding-left: 83px;
        padding-right: 33px;
    }

    .gugong_wenchuang{
        background:url(../images/stitle-3.png) no-repeat, url(../images/line2.jpg) no-repeat 60px top;
        padding-left: 60px;
        padding-top: 28px;
        width: 568px;

        ul{

            li{
                float: left;
                width: 170px;
                height: 42px;
                margin-right: 50px;
                margin-bottom: 45px;
                position: relative;

                img{
                    position: absolute;
                    top: 0;
                    left: -15px;
                    transition: 0.2s;
                }

                &:hover img{
                    left: -25px;
                }

                a{
                    width: 100%;
                    height: 100%;
                    display: block;
                    border: 1px solid #ccc;
                    border-radius: 30px;
                    text-align: center;
                    line-height: 42px;
                }
            }
        }
    }
}

.footer{
    background:url(../images/footer_bg.png) center top no-repeat #960300;
    padding-top: 210px;
    padding-bottom: 30px;
    
    .container{
        position: relative;
    }

    .logo-bottom{
        background:url(../images/icon.png) no-repeat right top;
        width: 72px;
        height: 86px;
    }

    .aside{
        font-size:12px;
        margin-left: 30px;

        .friend-link{
            width: 115px;
            height: 28px;
            line-height: 28px;
            color:#e8918f;
            background: #a81b18 url(../images/icon.png) no-repeat 100px -317px;
            cursor: pointer;
            position: relative;
            padding-left: 10px;

            &:hover{
                background-color: #cc3300;
            }

            &:hover .options{
                display: block;
            }

            .options{
                position: absolute;
                left: 0;
                bottom: 28px;
                background: #cc3300;
                width: 180px;
                display: none;

                li{
                    height: 40px;
                    line-height: 40px;
                    
                    a{
                        display: block;
                        padding-left: 10px;
                        color:#ffffff;

                        &:hover{
                            background: #bc9d45;
                            color:#ffffff;
                        }
                    }
                }
            }
        }

        .inner-link{
            margin: 10px 0;

            a{
                color:#d1b97e;
                margin-right: 12px;
                
                &:hover{
                    color:#f6ba00;
                }
            }
        }

        .copyright{
            color:#d2615f;
        }
    }

    .house{
        background:url(../images/bottomhouse.png);
        width: 248px;
        height: 250px;
        position: absolute;
        right: 0;
        bottom: -30px;
    }
}

.to-top{
    background:url(../images/top.png);
    width: 61px;
    height: 61px;
    position: fixed;
    right: 10px;
    bottom: 100px;
    opacity: 0.5;

    &:hover{
        opacity: 1;
    }
}

.zijinc{
    background:url(../images/zijinc.png);
    width: 190px;
    height: 186px;
    position: fixed;
    top: 50%;
    right: 0;
    margin-top: -93px;
}

@keyframes donghua02 {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}